package com.bhs.sansong.adapter;

import androidx.annotation.NonNull;

import com.bhs.sansong.R;
import com.bhs.sansong.bean.CommonProblemBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

public class CommonProblemAdapter extends BaseQuickAdapter<CommonProblemBean.DataDTO.ListDTO, BaseViewHolder> {

    public CommonProblemAdapter() {
        super(R.layout.item_common_problem);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, CommonProblemBean.DataDTO.ListDTO item) {
        helper.setText(R.id.tv_title, String.format("%s.%s", helper.getLayoutPosition() + 1, item.getTitle()));
    }
}
